scores = [5, 5, 10, 10, 15, 15, 20, 20, 25, 25]
sco_set = set()


def dfs(start_index, sco):
    if start_index == len(scores):
        sco_set.add(sco)
        return
    sco += scores[start_index]
    dfs(start_index + 1, sco)
    sco -= scores[start_index]
    dfs(start_index + 1, sco)


dfs(0, 0)
print(len(sco_set))
